//
//  UIBarButtonItem+NavBtnSpacer.m
//  inManNew
//
//  Created by 任辰东 on 14-10-17.
//  Copyright (c) 2014年 任辰东. All rights reserved.
//

#import "UIBarButtonItem+NavBtnSpacer.h"

@implementation UIBarButtonItem (NavBtnSpacer)
+ (UIBarButtonItem *)negativeSpacerWithWidth:(NSInteger)width {
    UIBarButtonItem *item = [[UIBarButtonItem alloc]
                             initWithBarButtonSystemItem:UIBarButtonSystemItemFixedSpace
                             target:nil
                             action:nil];
    item.width = (width >= 0 ? -width : width);
    return item;
}
@end
